@extends('frontend/layouts/default')
{{--Page Title--}}
@section('title')
Đăng nhập
@endsection
@section('content')
<div class="col-md-6 col-md-offset-3 col-xs-12 col-xs-offset-0 centered-page">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h1 class="panel-title big">Đăng nhập</h1>
        </div>
        <div class="panel-body">
            <form class="form-vertical" action="{{route('signin')}}" method="post" accept-charset="utf-8"
                  onsubmit="md5hash(password, md5password, md5password_utf, 0)">
                <?= Form::token() ?>
                <div class="mbottom">

                </div>
                <div class="form-group">
                    <label class="control-label" for="username">Tên đăng nhập</label>

                    <div class="controls <?= ($errors->first('username')) ? 'has-error' : ''; ?>">
                        <input id="username" class="form-control input-lg" type="text" name="username" required/>
                        {{ $errors->first('username', '<span class="control-label">:message</span>') }}
                    </div>
                </div>
                <div class="form-group <?= ($errors->first('password')) ? 'has-error' : ''; ?>">
                    <label class="control-label" for="password">Mật khẩu</label>

                    <div class="controls">
                        <input class="form-control input-lg" name="password" type="password" id="password" required/>
                        {{ $errors->first('password', '<span class="control-label">:message</span>') }}
                    </div>
                </div>
                <input type="hidden" name="md5password" id="md5password"/>
                <input type="hidden" name="md5password_utf" id="md5password_utf"/>

                <div class="checkbox">
                    <label>
                        <?= Form::checkbox('remember-me', '1', "", array('id' => 'remember-me')); ?> Duy trì đăng nhập
                    </label>
                </div>
                <button class="btn btn-primary" type="submit">Đăng nhập</button>
                <a class="btn btn btn-link pull-right" href="{{route('forgot-password')}}">Quên mật khẩu</a>
            </form>
        </div>
    </div>
</div>
@stop